import request from '@/utils/request'

export const booksList = (params: any) => {
  return request({
    method: 'get',
    url: '/api/mini-library/books/list',
    params,
  })
}

export const bookBorrow = (id: number) => {
  return request({
    method: 'post',
    url: `/api/mini-library/borrow/${id}`,
  })
}
